cc.Class({
    extends: cc.Component,

    properties: {
        join: {default: null, type: cc.Node, displayName: "进入侧边栏按钮"},
    },

    close() {
        this.node.active = false;
        this.node.parent = null;
    },

    buttonTouchEventSide: function (e) {
        tt.navigateToScene({
            scene: "sidebar",
            success: (res) => {
                this.close();
            },
            fail: (res) => {
                console.log("navigate to scene fail: ", res);
            },
        });

    },
});
